home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / prog / atari / c / nos042_s / st_asy.h < prev    next >
C/C++ Source or Header  |  1994-09-16  |  2KB  |  58 lines

  1. /*
  2.     st_asy.h - header for Atari ST async driver
  3. */
  4.  
  5. #ifndef _DOS_H                            /* required for IOREC defn            */ 
  6. #include <dos.h>
  7. #endif
  8.  
  9. #define FOUND_DOWN    0x00
  10. #define FOUND_UP        0x01
  11. #define MOVED_DOWN    0x02
  12. #define MOVED_UP        0x03
  13. #define IGNORED         0x04
  14.  
  15. struct asy {
  16.     unsigned char  *input_buffer;                /* point to input buffer             */
  17.     unsigned int    buflen;                        /* length of recv buffer             */
  18.     unsigned char  *input_p;                    /* pointer to current byte            */
  19.     unsigned int    input_len;                    /* bytes left                             */
  20.     unsigned int    speed;                        /* line speed                             */
  21.     char               *device_name;                /* device name                         */
  22.     int                unit;                            /* unit number                         */
  23.     unsigned int    rxchar;                        /* received char count                */    
  24.     unsigned int    txchar;                        /* transmitted char count            */
  25.     unsigned int   rxover;                 /* receiver overrun count        */
  26.     unsigned int   txover;                 /* transmit overrun count        */
  27.     struct iface    *iface;                        /* back pointer to interface         */
  28.     struct mbuf        *sndq;                        /* transmit queue                     */
  29.     struct MsgPort    *serinp;                        /* input message port                 */
  30.     struct MsgPort    *seroutp;                    /* output message port                 */
  31.     char                input_active;                /* input request pending             */
  32.     char                output_active;                /* output request pending             */
  33.     char                serial_open;                /* open and ready to go             */
  34.     char                mode;                            /* mode (SLIP, AX25, NRS)             */
  35.     IOREC             *in;                            /* ptr to current i/p iorec        */
  36.     IOREC                *out;                            /* ptr to current o/p iorec         */
  37.     IOREC             oldin;                        /* saved i/p iorec                    */
  38.     IOREC                oldout;                         /* saved o/p iorec                    */
  39.     unsigned         addr;                            /* Base I/O address, 1 or 3          */
  40.     unsigned         vec;                            /* I vector =  route thru flag     */
  41.     char dtr_usage;
  42.     char rts_usage;
  43.     char cts_flow_control;
  44.     char rlsd_line_control;            /* RLSD indicates physical layer up/down */
  45.  
  46.     unsigned char user_flags;        /* user specified flags                    */
  47.     
  48. #define    ASY_UFLAG_1  1                /* Define user flag values here, add code */
  49. #define    ASY_UFLAG_2  2                /* to asy.c and st_asy.c to handle them    */
  50.  
  51. };
  52.  
  53. extern struct asy Asy[];
  54.  
  55. /*
  56. void check_serin(struct asy *asy), check_serout(struct asy *asy);
  57. */
  58.